package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

//会员
@Getter@Setter
public class Member {
    private Long id;
    //会员卡号
    private String cardNumber;

    private String name;

    private String password;

    private String tel;
    //积分
    private Integer points;
    //余额
    private BigDecimal balance;
    //地址
    private String address;
    //客户等级
    private String levelName;
    //会员分组
    private String groupName;
    //客户来源
    private String sourceName;
    //出生日期
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date birthday;

    //关联字典
    private String dictionaryDetailName;

    //关联会员(充值)明细
    private MemberClient memberClient;

    //关联会员(充次)明细
    private RechargeTime rechargeTime;

    //所属商铺
    private String shopName;

    //哪位员工负责
    private String employeeName;

    private ChangePoint changePoint;
    private Gift gift;
}